0;95;c0;95;c[>0;95;c]s[>0;95;c]CFLAGS = -Wall -fpic -coverage -lm

rngs.o: rngs.h rngs.c
	gcc -c rngs.c -g  $(CFLAGS)

dominion.o: dominion.h dominion.c rngs.o
	gcc -c  -fprofile-arcs -ftest-coverage dominion.c -g  $(CFLAGS)

playdom: dominion.o playdom.c
<<<<<<< .mine
<<<<<<< .mine
	gcc -o playdom playdom.c -g dominion.o rngs.o $(CFLAGS)
=======
	gcc -o playdom playdom.c -g -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
>>>>>>> .r737
=======
	gcc -o playdom playdom.c -g -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)

<<<<<<< .mine
myPlayDom: dominion.o myPlayDom.c
	gcc -std=c99 -o myPlayDom myPlayDom.c -g -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
>>>>>>> .r708
	./myPlayDom 50 >> testdomininon.out

testdomininon: dominion.o testdomininon.c
	gcc -std=c99 -o testdomininon testdomininon.c -g -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./testdomininon 1  >> gameResults.out
	./testdomininon 50 >> testdomininon.out

=======
myPlayDom: dominion.o myPlayDom.c
	gcc -std=c99 -o myPlayDom myPlayDom.c -g -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./myPlayDom 50 >> testdomininon.out

testdomininon: dominion.o testdomininon.c
	gcc -std=c99 -o testdomininon testdomininon.c -g -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./testdomininon 1  >> gameResults.out
	./testdomininon 50 >> testdomininon.out

>>>>>>> .r737
testDrawCard: testDrawCard.c dominion.o rngs.o
	gcc -o testDrawCard -g  testDrawCard.c dominion.o -lm rngs.o $(CFLAGS)

badTestDrawCard: badTestDrawCard.c dominion.o rngs.o
	gcc -o badTestDrawCard -g  badTestDrawCard.c dominion.o rngs.o $(CFLAGS)

testBuyCard: testBuyCard.c dominion.o rngs.o
	gcc -o testBuyCard -g  testBuyCard.c dominion.o rngs.o $(CFLAGS)

testAll: dominion.o testSuite.c
	gcc -o testSuite testSuite.c -g  dominion.o rngs.o $(CFLAGS)

interface.o: interface.h interface.c
	gcc -c interface.c -g  $(CFLAGS)

player: player.c interface.o
	gcc -o player player.c -g  dominion.o rngs.o interface.o $(CFLAGS)

all: playdom player testDrawCard testBuyCard badTestDrawCard

clean:
	rm -f *.o playdom.exe playdom test.exe test player player.exe testDrawCard testDrawCard.exe testBuyCard testBuyCard.exe badTestDrawCard badTestDrawCard.exe *.gcov *.gcda *.gcno *.so

myTest: myTest.c dominion.o rngs.o
	gcc -o myTest  -g  myTest.c -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./myTest

unittest1: unittest1.c dominion.o rngs.o
	gcc -o ut1  -g  unittest1.c  -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./ut1
unittest2: unittest2.c dominion.o rngs.o
	gcc -o ut2  -g  unittest2.c  -fprofile-arcs -ftest-coverage  dominion.o -lm rngs.o $(CFLAGS)
	./ut2
unittest3: unittest3.c dominion.o rngs.o
	gcc -o ut3  -g  unittest3.c  -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./ut3
unittest4: unittest4.c dominion.o rngs.o
	gcc -o ut4  -g  unittest4.c  -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./ut4

unittests:
	make unittest1
	make unittest2
	make unittest3
	make unittest4

cardtest1: cardtest1.c dominion.o rngs.o
	gcc -o ct1  -g  cardtest1.c  -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./ct1
cardtest2: cardtest2.c dominion.o rngs.o
	gcc -o ct2  -g  cardtest2.c  -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./ct2
cardtest3: cardtest3.c dominion.o rngs.o
	gcc -o ct3  -g  cardtest3.c  -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./ct3
cardtest4: cardtest4.c dominion.o rngs.o
	gcc -o ct4  -g  cardtest4.c  -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./ct4

cardtests:
	make cardtest1
	make cardtest2
	make cardtest3
	make cardtest4

unittestresults.out:
	make cardtests >> unittestresults.out
	make unittests >> unittestresults.out
	gcov -f dominion.c  >> unittestresults.out

findEnum:
	gcc findEnum.c -std=c99 -o findEnum
	./findEnum

randomtestadventurer.out: randomtestadventurer.c  dominion.o rngs.o
	gcc -std=c99 -o randomtestadventurer  -g randomtestadventurer.c  -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./randomtestadventurer >> randomtestadventurer.out

randomtestcard.out: randomtestcard.c  dominion.o rngs.o
	gcc -std=c99 -o randomtestcard  -g randomtestcard.c  -fprofile-arcs -ftest-coverage dominion.o -lm rngs.o $(CFLAGS)
	./randomtestcard >> randomtestcard.out
